<?php

namespace App\Http\Controllers;

use App\Library\Requests\Audit\RealNameAuthAddRequest;
use App\Library\Requests\Base\SerialNumberRequest;
use App\Library\Service\AuditService;
use Illuminate\Http\JsonResponse;

class AuditController extends BaseController
{
    /**
     * @param AuditService $service
     */
    public function __construct(AuditService $service)
    {
        $this->service = $service;
    }

    /**
     * 实名认证
     * @param RealNameAuthAddRequest $request
     * @return JsonResponse
     */
    public function realNameAuth(RealNameAuthAddRequest $request):JsonResponse
    {
        return $this->service->realNameAuth($request);
    }
}
